package com.info.zhiduoduo.repository.entity.maker;

import com.baomidou.mybatisplus.activerecord.Model;
import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableName;
import com.baomidou.mybatisplus.enums.IdType;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.util.Date;

/**
 * 创客状态原因表
 */
@Data
@Accessors(chain = true)
@TableName("zdd_maker_status_reason")
public class MakerStatusReason extends Model<MakerStatusReason> {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    @ApiModelProperty("创客id")
    @TableField("userid")
    private Integer userid;

    @ApiModelProperty("实名原因")
    @TableField("real_name_reason")
    private String realNameReason;

    @ApiModelProperty("开户原因")
    @TableField("account_opening_reason")
    private String accountOpeningReason;

    @ApiModelProperty("已开户原因")
    @TableField("opened_reason")
    private String openedReason;

    @ApiModelProperty("创建时间")
    @TableField("createtime")
    private Date createtime;

    @ApiModelProperty("修改时间")
    @TableField("updatetime")
    private Date updatetime;

    @Override
    protected Serializable pkVal() {
        return this.id;
    }

}
